package com.xingxue.controller;

import com.xingxue.service.LicenseAuditService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.List;

/**
 * @author zgx at 2018/10/26 0026 上午 10:11
 */

@Controller
@RequestMapping("licenseAudit")
public class LicenseAuditController {

    @Autowired
    LicenseAuditService licenseAuditService;
    @RequestMapping(value = "/search")
    public ModelAndView search(){
        ModelAndView mv = new ModelAndView();
        List<HashMap<String,Object>> audit = this.licenseAuditService.search();
        mv.addObject("audit",audit);
        mv.setViewName("licenseAudit");
        return mv;
    }
}
